<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
        <title>上传例子</title>
        <link href="/plugin/cooperation_unit/swfupload/css/default.css" rel="stylesheet" type="text/css" /> 
    </head>
    <script type="text/javascript" src="/plugin/cooperation_unit/swfupload/swfupload.js"></script>
    <script type="text/javascript" src="/plugin/cooperation_unit/swfupload/swfupload.queue.js"></script>
    <script type="text/javascript" src="/plugin/cooperation_unit/swfupload/fileprogress.js"></script>
    <script type="text/javascript" src="/plugin/cooperation_unit/swfupload/handlers.js"></script>
    <script type="text/javascript">
        var upload1, upload2;
        window.onload = function() {
            upload1 = new SWFUpload({
                // Backend Settings
                upload_url: "/handle.php?h=user_app_album/add_pic",
                post_params: {"PHPSESSID" : "<?php echo session_id(); ?>","aid" : "1","uid" : "1"},

                // File Upload Settings
                file_size_limit : "1024000",    // 100MB
                file_types : "*.*",
                file_types_description : "All Files",
                file_upload_limit : "1000",
                file_queue_limit : "0",

                // Event Handler Settings (all my handlers are in the Handler.js file)
                file_dialog_start_handler : fileDialogStart,
                file_queued_handler : fileQueued,
                file_queue_error_handler : fileQueueError,
                file_dialog_complete_handler : fileDialogComplete,
                upload_start_handler : uploadStart,
                upload_progress_handler : uploadProgress,
                upload_error_handler : uploadError,
                upload_success_handler : uploadSuccess,
                upload_complete_handler : uploadComplete,

                // Button Settings
                button_image_url : "/plugin/cooperation_unit/swfupload/img/XPButtonUploadText_61x22.png",
                button_placeholder_id : "spanButtonPlaceholder1",
                button_width: 61,
                button_height: 22,

                // Flash Settings
                flash_url : "/plugin/cooperation_unit/swfupload/swf/swfupload.swf",


                custom_settings : {
                    progressTarget : "fsUploadProgress1",
                    cancelButtonId : "btnCancel1"
                },

                // 输出调试信息
                debug: false
            });

        }
    </script>
    <body>
        <div class="main" align="center">
            <div class="fieldset flash" id="fsUploadProgress1">
            <span class="legend">上传文件</span> </div>
            <div style="padding-left: 5px;">
                <span id="spanButtonPlaceholder1"></span>
                <div style='display:none;'>
                    <input id="btnCancel1" type="button" value="取消上传" onclick="cancelQueue(upload1);" disabled="disabled" style="margin-left: 2px; height: 22px; font-size: 8pt;" />
                </div>
            </div>
        </div>
    </body>
</html>

